begintownscript;
variables;
short choice,i,x,y;

body;

beginstate init_state;
	if(get_flag(9,6) == 0)
		activate_hidden_group(1);
	if(get_flag(9,6) == 1)
		set_terrain(23,7,137);

	set_flag(9,3,0);
	if(get_flag(9,4) == 1) {
		set_height(23,18,5);
		set_floor(23,18,123);
		set_terrain(23,17,32);
		put_object_on_space(7,20,-1); }
break;
break;

beginstate start_state;
	y = 19;
	while(y <= 26) {
		x = 12; 
		if(get_terrain(x,y) == 447) 
			if(get_height(x,y) == 4)
			{	set_height(x,y,5);
				set_floor(x,y,145);
				set_terrain(x,y,0); }
				y = y + 1; }
	y = 19;
	x = 14;
	while(y <= 26) { 
		if(get_terrain(x,y) == 447)
			if(get_height(x,y) == 4)
			{	set_height(x,y,5);
				set_floor(x,y,145);
				set_terrain(x,y,0); }
				y = y + 1; }

	y = 19;
	x = 16;
	while(y <= 26) { 
		if(get_terrain(x,y) == 447)
			if(get_height(x,y) == 4)
			{	set_height(x,y,5);
				set_floor(x,y,145);
				set_terrain(x,y,0); }
				y = y + 1; }
	if(get_terrain(18,20) == 447)
	{	set_terrain(18,20,0);
		set_height(18,20,5);
		set_floor(18,20,145); }

	if(get_terrain(26,27) == 447)
	{	set_terrain(26,27,0);
		set_height(26,27,5);
		set_floor(26,27,145); }

if(get_flag(9,4) == 0) {
	set_flag(9,1,0);
	set_flag(9,2,0);
	x = 7;
		while (x <=  30) {
			y = 19;
			while (y <= 37) 
			{	if(is_object_on_space(x,y,2) == 1)
					inc_flag(9,1,1);
				if(is_object_on_space(x,y,1) == 1)
					inc_flag(9,2,1); 
				y = y + 1; }
			x = x + 1; }
		
	if(get_flag(9,3) == 0) {
		if(get_flag(9,1) < 2)
		{	message_dialog("A voice booms, _No crate may touch the floor till the barrel is in the appointed place. Return to the start._","");
			set_flag(9,3,1);}

		if(get_flag(9,2) < 1) 
		{	message_dialog("A voice booms, _The barrel has not reached the appointed place. Return to start._","");
			set_flag(9,3,1); }

		if(is_object_on_space(24,34,1) == 1)
			if(get_flag(9,4) == 0)
			{	message_dialog("A voice booms, _You have passed._ This is accompanied by the sound of chains grinding across stone.","");
				play_sound(99);
				set_height(23,18,5);
				set_floor(23,18,123);
				set_terrain(23,17,32);
				set_flag(9,4,1); }
}
}

		
break;

beginstate exit_state;
break;

beginstate 10;
	if(get_flag(9,4) == 1)
		message_dialog("_The challenge is complete. Leave now._","");
	else {	
	reset_dialog();
	add_dialog_str(0,"Would you like to reset the puzzle?",0);
	add_dialog_choice(0,"Yes.");
	add_dialog_choice(1,"No.");
	choice = run_dialog(1);
	if(choice == 1) {
	x = 7;
		while (x <=  30) {
			y = 19;
			while (y <= 37) 
			{	put_object_on_space(x,y,-1);
				y = y + 1; }
			x = x + 1; }

	put_object_on_space(7,20,1);
	put_object_on_space(24,22,2);
	put_object_on_space(25,21,2);

	x = 12;
	y = 19;
	while(y <= 26) {
		set_height(x,y,4);
		set_floor(x,y,71);
		set_terrain(x,y,0);
		y = y + 1; }
	y = 19;
	x = 14;
	while(y <= 26) { 
		set_height(x,y,4);
		set_floor(x,y,71);
		set_terrain(x,y,0);
				y = y + 1; }

	y = 19;
	x = 16;
	while(y <= 26) { 
		set_height(x,y,4);
		set_floor(x,y,71);
		set_terrain(x,y,0);
				y = y + 1; }

	x = 26;
		while (x <=  30) {
			y = 24;
			while (y <= 29) 
			{	set_terrain(x,y,0);
				y = y + 1; }
			x = x + 1; }
		set_height(26,27,3);
		set_floor(26,27,71);
		set_terrain(28,26,447);

		set_height(18,20,3);
		set_floor(18,20,71);

	x = 8;
		while (x <=  18) {
			y = 19;
			while (y <= 26) 
			{	set_terrain(x,y,0);
				y = y + 1; }
			x = x + 1; }

		set_terrain(11,20,447);	
		set_terrain(11,26,447);
		set_terrain(13,22,447);
		set_terrain(13,24,447);
		set_terrain(15,25,447);
		set_terrain(17,25,447);
	message_dialog("The rooms shifts back to how it was.","");
	set_flag(9,3,0);
	swap_terrain(7,26,374,375);
}
	if(choice == 2)
		end();
}
break;

beginstate 11;
	if(get_flag(9,5) == 0) {
		message_dialog("This is one of the strangest rooms you have seen in the tower. To the east are several pits that split the room. There are also large stone blocks throughout the room. A great deal of pushing reveals that with some difficulty you can move them.","Four pits block your path to the east, you can't be sure without trying, but it looks like if you pushed a block into one it would hit the bottom. Perhaps you could cross with a little bit of effort and cleverness.");
		set_flag(9,5,1); }
break;

beginstate 12;
	move_to_new_town(8,50,27);
break;

beginstate 13;
if(get_flag(9,6) == 0)
	{
	i = 0;
	while (char_ok(i) == 0)
		{ i = i + 1; }

	march_party(23,14);
	force_view_center(char_loc_x(i),char_loc_y(i));
	force_instant_terrain_redraw();
	pause(5);

	march_party(24,13);
	force_view_center(char_loc_x(i),char_loc_y(i));
	force_instant_terrain_redraw();
	pause(5);

	march_party(23,12);
	force_view_center(char_loc_x(i),char_loc_y(i));
	force_instant_terrain_redraw();
	pause(5);

	text_bubble_on_char(7,"Who are you?");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"And how did you");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"get past my golems?");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(7,"");
	text_bubble_on_char(i,"We destroyed them.");
	force_instant_terrain_redraw();
	pause(17);


	text_bubble_on_char(i,"");
	text_bubble_on_char(7,"Remarkable.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"But you've yet to tell me");
	force_instant_terrain_redraw();
	pause(16);


	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"who you are.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(7,"");
	force_instant_terrain_redraw();
	reset_dialog();
	add_dialog_str(0,"How do you respond?",0);
	add_dialog_choice(0,"Just know I'm here to kill you.");
	add_dialog_choice(1,"I'm here to stop the bloodshed.");
	add_dialog_choice(2,"Thats not important.");
	choice = run_dialog(1);

	if(choice == 1)
	{	text_bubble_on_char(7,"");
		text_bubble_on_char(7,"So fervent.");
		force_instant_terrain_redraw();
		pause(17);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"Don't you even want to");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"hear my story first?");
		force_instant_terrain_redraw();
		pause(18); }

	if(choice == 2)
	{	text_bubble_on_char(7,"");
		text_bubble_on_char(7,"Concerned with all");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"those _innocents_ dying?");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"If only you knew....");
		force_instant_terrain_redraw();
		pause(18); }

	if(choice == 3)
	{	text_bubble_on_char(7,"");
		text_bubble_on_char(7,"How true.");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"The Empire will not");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"grace you with more");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"than an unmarked grave.");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"I should give you the same.");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"But I can't help pity you");
		force_instant_terrain_redraw();
		pause(18);

		text_bubble_on_char(7,"");
		text_bubble_on_char(7,"for your ignorance.");
		force_instant_terrain_redraw();
		pause(18); }

	text_bubble_on_char(7,"");
	text_bubble_on_char(i,"I've heard your story");
	force_instant_terrain_redraw();	
	pause(19);

	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"and I remain unconvinced.");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(i,"");
	text_bubble_on_char(7,"What?");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"I've spoken my story");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"to no one.");
	force_instant_terrain_redraw();
	pause(18);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"What could you know of it?");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(i,"I found your journal.");
	text_bubble_on_char(7,"!!!");
	force_instant_terrain_redraw();	
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"Frankly your story is");
	force_instant_terrain_redraw();	
	pause(19);

	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"full of holes.");
	force_instant_terrain_redraw();	
	pause(17);

	if(get_flag(250,11) == 1)
	{	text_bubble_on_char(i,"");
		text_bubble_on_char(i,"And the murder reports");
		force_instant_terrain_redraw();
		pause(17);

		text_bubble_on_char(i,"");
		text_bubble_on_char(i,"give a different account altogether.");
		force_instant_terrain_redraw();
		pause(19); }

	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"You need to explain yourself.");
	force_instant_terrain_redraw();
	pause(18);

	text_bubble_on_char(i,"");
	activate_hidden_group(2);
	force_instant_terrain_redraw();
	pause(8);

	relocate_character(6,23,10);
	force_instant_terrain_redraw();
	pause(7);

	set_character_facing(6,0);
	force_instant_terrain_redraw();
	pause(7);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"Who are these dark agents");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"that call back");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"the painful past?");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"These things have long");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"been forgotten.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Remember the journal.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"The journal was lost");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"and with it the vivid details");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"of that momentous day.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"The day I received my task,");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"Of course......");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"Yes?");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"The journal may have survived.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"The journal was burned.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"I saw its pages consumed,");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"and the tendrils of smoke carry");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"away those painful memories forever.");
	force_instant_terrain_redraw();
	pause(23);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"I was there as well.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"I rejoiced as the burden was lifted,");
	force_instant_terrain_redraw();
	pause(21);


	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"but these 'adventurers' have passed");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"through what was deemed");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"to be insurmountable.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"Who is to say");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"that they can not");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"restore what was cast away.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"No one can put burned memories");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"back together.");
	force_instant_terrain_redraw();
	pause(18);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Perhaps, but the time");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"of retribution is at hand.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"If I don't understand the reason");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"for my task,");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"then I am doomed to fail.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"They speak true,");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"it is time you remember the truth.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"All who were there that day");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"never saw the sunrise.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"Who could this be?");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"Who comes to remind me");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"of what I've forgotten?");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"The answer is obvious.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"It eludes me still.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"There was one who survived.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"I know there were none,");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"speak plainly.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"I speak with him now.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"No.....");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Who else?");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"But why?");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"The time is at hand.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"your resolve must be strong.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"OUR resolve must be strong.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"A......");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"A......test?");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Now you see it.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"Did you conjure");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"these haunting apparitions?");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Not I.");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"Then it was....");
	force_instant_terrain_redraw();
	pause(12);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"Then it was....her.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Go back to that dark day.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"But it hurts too much.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"The victory will be sweeter");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"if we understand the purpose");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"of our crusade.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"But you saw the smoke...");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"The memories burned with it.");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"I never really forgot,");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"and I know you couldn't either.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"No... The pain never did leave.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"But at least it was temporarily");
	force_instant_terrain_redraw();
	pause(20);


	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"pushed to the back...");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"No excuses!");
	force_instant_terrain_redraw();
	pause(21);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"I've dragged us this far, but");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"your constant lack of zeal");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"has always been our weakness.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"No longer!");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"I will go back to that day");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"if you will not,");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"and when I return you will");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"never forget why you swore");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"to pursue this fate.");
	force_instant_terrain_redraw();
	pause(22);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"ENOUGH");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"I will do it,");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"Not for myself.");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"Not for you.");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"But for her.");
	force_instant_terrain_redraw();
	pause(20);

	reset_dialog();
	add_dialog_str(0,"Janok's eyes glaze over and he stares right past you across the room.",0);
	add_dialog_str(2,"_I remember the journal, but now my mind is playing tricks on me. No not tricks, she is trying to remind me of something, an important detail perhaps._ He launches into his story.",0);
	add_dialog_choice(0,"OK.");
	choice = run_dialog(1);
	if(choice == 1)
		set_flag(9,6,1);
		move_to_new_town(11,38,8);
}
break;

beginstate 14;
move_to_new_town(3,30,41);
break;

beginstate 15;
if(get_flag(250,7) == 0)
{
if(get_flag(10,9) == 0)
	message_dialog("You would guess that Janok is waiting for you above this stairway. You have already witnessed his strength, and he also has an entire army of golems at his disposal that you have done nothing about.","You might want to search the tower for a place to plug in Tuchin's disruption crystal before fighting Janok.");
else message_dialog("These stairs must lead to wherever Janok teleported to. You've already destroyed the golems, but you never know what tricks a wizard might have up his sleeve. You should proceed with great caution.","");
}
break;